<?php
include('lib/Geopictures.php');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>GeoPictures :: Flickr + Google Maps</title>
<link media="screen" rel="stylesheet" type="text/css" href="lib/css/main.css" />
<script type="text/javascript">

    //<![CDATA[

    function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
      }
    }

    //]]>
</script>
<?php
	$geopictures = new GeoPictures("http://localhost/geopictures/Web-Service/");
?>
	
</head>

<body>

<div id="wrapper">
	
	<div id="map">
	</div>

	<div id="main">
	
	<div id="main_content">
	<?php
		$act = $_GET['act'];
		switch($act){
			case 'photos':
				$geopictures->getPhotos();
				break;
			default:
				echo "&nbsp;";
				break;
		}
	?>
	</div>
	<div id="menu">
		<?php $geopictures->getMenu(); ?>
	</div>
	
	
	</div>

</div>
</body>
</html>
